package com.example.base.security.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.base.excetion.GlobalExcetion;
import com.example.base.security.domain.SysMenuEntity;
import com.example.base.security.domain.vo.SysMenuVo;

import java.util.List;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/6/11 14:45
 * @since JDK 1.8
 */
public interface SysMenuService extends IService<SysMenuEntity> {

    List<SysMenuEntity> listTree();

    List<SysMenuEntity> listTreeByUser();

    List<SysMenuEntity> listParent();
    
    SysMenuEntity saveOrUpdateSysMenuEntity(SysMenuVo vo) throws GlobalExcetion;

    SysMenuEntity getSysMenuEntityByPermission(String permission);
}
